package com.example.testapp.activity.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.text.util.Linkify;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.testapp.R;

/**
 * Created by l on 2016/8/2.
 */
public class AboutMeFragment extends Fragment {

    View baseView;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

        baseView = inflater.inflate(R.layout.fragment_about, container,  false);
        initView();
        return baseView;
    }

    private void initView() {
        TextView aboutView = (TextView)baseView.findViewById(R.id.about_me_tv);
        Linkify.addLinks(aboutView, Linkify.ALL);
    }
}
